package com.shop.entity.storeOrderList;

import java.util.Objects;

public class StoreGetOrderList {
    private int o_id;
    private int od_id;
    private int gd_id;
    private String imgPath;
    private String goodName;
    private double price;
    private int gNum;
    private String size;
    private String status;
    private String bank1;
    private String bank2;

    public StoreGetOrderList() {
    }




    public StoreGetOrderList(int o_id, int od_id, int gd_id, String imgPath, String goodName, double price, int gNum, String size, String status, String bank1) {
        this.o_id = o_id;
        this.od_id = od_id;
        this.gd_id = gd_id;
        this.imgPath = imgPath;
        this.goodName = goodName;
        this.price = price;
        this.gNum = gNum;
        this.size = size;
        this.status = status;
        this.bank1 = bank1;
    }

    public StoreGetOrderList(int gd_id, String imgPath, String goodName, double price, int gNum, String size, String status,String o_pay) {
        this.gd_id = gd_id;
        this.imgPath = imgPath;
        this.goodName = goodName;
        this.price = price;
        this.gNum = gNum;
        this.size = size;
        this.status = status;
        this.bank1 = o_pay;
    }

    public StoreGetOrderList(int o_id, int od_id, int gd_id, String imgPath, String goodName, double price, int gNum, String size, String status, String bank1, String bank2) {
        this.o_id = o_id;
        this.od_id = od_id;
        this.gd_id = gd_id;
        this.imgPath = imgPath;
        this.goodName = goodName;
        this.price = price;
        this.gNum = gNum;
        this.size = size;
        this.status = status;
        this.bank1 = bank1;
        this.bank2 = bank2;
    }


    public int getO_id() {
        return o_id;
    }

    public void setO_id(int o_id) {
        this.o_id = o_id;
    }

    public int getOd_id() {
        return od_id;
    }

    public void setOd_id(int od_id) {
        this.od_id = od_id;
    }

    public int getGd_id() {
        return gd_id;
    }

    public void setGd_id(int gd_id) {
        this.gd_id = gd_id;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getgNum() {
        return gNum;
    }

    public void setgNum(int gNum) {
        this.gNum = gNum;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBank1() {
        return bank1;
    }

    public void setBank1(String bank1) {
        this.bank1 = bank1;
    }

    public String getBank2() {
        return bank2;
    }

    public void setBank2(String bank2) {
        this.bank2 = bank2;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StoreGetOrderList that = (StoreGetOrderList) o;
        return Double.compare(that.price, price) == 0 &&
                gNum == that.gNum &&
                Objects.equals(imgPath, that.imgPath) &&
                Objects.equals(goodName, that.goodName) &&
                Objects.equals(size, that.size) &&
                Objects.equals(status, that.status) &&
                Objects.equals(bank1, that.bank1) &&
                Objects.equals(bank2, that.bank2);
    }

    @Override
    public int hashCode() {
        return Objects.hash(imgPath, goodName, price, gNum, size, status, bank1, bank2);
    }

    @Override
    public String toString() {
        return "StoreGetOrderList{" +
                "o_id=" + o_id +
                ", od_id=" + od_id +
                ", gd_id=" + gd_id +
                ", imgPath='" + imgPath + '\'' +
                ", goodName='" + goodName + '\'' +
                ", price=" + price +
                ", gNum=" + gNum +
                ", size='" + size + '\'' +
                ", status='" + status + '\'' +
                ", bank1='" + bank1 + '\'' +
                ", bank2='" + bank2 + '\'' +
                '}';
    }
}
